
window.onload=function () {
    inspect();
}

function inspect() {
    axios.get("/user/getLoginUser").then(resp=>{
        var info = resp.data;
        if (info.grade=="班主任"){
         $n("n2").style.display="none";
         $n("n3").style.display="none";
        }
        if (info.grade=="房间管理员"){
            $n("n1").style.display="none";
            $n("n3").style.display="none";
        }
        if (info.grade=="系统管理员"){
            $n("n1").style.display="none";
            $n("n2").style.display="none";
        }
    });
}

function check(id) {
    var str = $n(id)
    if (str.style.display=="block"){
        $n(id).style.display="none";
    }else {
        $n(id).style.display="block";
    }
}